package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 创建角色请求
 */
@Data
@Schema(description = "创建角色请求")
public class RoleCreateRequest {

    @NotBlank
    @Schema(description = "角色唯一名称", example = "editor")
    private String name;

    @NotBlank
    @Schema(description = "角色显示名称", example = "内容编辑")
    private String displayName;

    @Schema(description = "角色描述")
    private String description;

    @Schema(description = "角色排序", example = "0")
    private Integer sortOrder = 0;

    @Schema(description = "是否为系统角色（不可删除）", defaultValue = "false")
    private Boolean systemRole = false;

    @Schema(description = "权限ID列表")
    private List<Long> permissionIds;
}


